package leetcode.test;

import java.util.LinkedList;
import java.util.Stack;

public class CQueue2 {

    LinkedList<Integer> lt;

    public CQueue2() {
        lt = new LinkedList<>();
    }

    public void appendTail(int value) {
        lt.add(value);
    }

    public int deleteHead() {
        if(!lt.isEmpty()){
            return -1;
        } else {
            return (int)lt.removeFirst();
        }
    }
}